//
//  DTUIWebVIewBounce.m
//  PersonalManager
//
//  Created by user on 16/8/15.
//  Copyright © 2016年 Haiyun.Qian. All rights reserved.
//

#import "DTUIWebVIewBounce.h"
#import "DTWebViewController.h"

@implementation DTUIWebVIewBounce


//启用bounce
-(void)enable:(DTJavascriptCommand *)command{
    DTWebViewController * VC = (DTWebViewController *) command.controller;
    [(UIScrollView *)[[VC.webView subviews] objectAtIndex:0] setBounces: true ];

}

//禁用bounce
-(void)disable:(DTJavascriptCommand *)command{
    DTWebViewController * VC = (DTWebViewController *) command.controller;
    [(UIScrollView *)[[VC.webView subviews] objectAtIndex:0] setBounces: NO ];
}


@end
